Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAYA-104936 instanceIndices may contain duplicate indices. #575

Merged

Conversation

williamkrick
Copy link
Contributor

Only add each instance transform at most once.

@williamkrick williamkrick added the vp2renderdelegate Related to VP2RenderDelegate label Jun 9, 2020
@williamkrick
Copy link
Contributor Author

@cfmoore007 This is some defensive code that "fixes" the issue you reported with drawing instanced selection. I'm not sure this is the code we'll check in, but this change does give what I believe will be the final performance, if you are interested in testing.

Copy link

@huidong-chen huidong-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry but we still have to change basisCurves.

@williamkrick
Copy link
Contributor Author

I re-tested this with usd dev branch @ e7ff8e85 rather than 20.05 that we use internally normally, and the issue with the N^2 instances is fixed in that version, so this change doesn't provide a speedup with newer builds of USD.

I will protect this defensive code so that it only runs for USD versions 20.05 and older.

@cfmoore007 The issue you are seeing is something else, I will keep investigating.

@cfmoore007
Copy link

Thanks, @williamkrick

@williamkrick williamkrick force-pushed the krickw/MAYA-104936/dont_draw_selected_instances_multiple_times branch from 9ee858e to 71451e2 Compare June 10, 2020 17:36
@williamkrick williamkrick force-pushed the krickw/MAYA-104936/dont_draw_selected_instances_multiple_times branch from 71451e2 to a4074ea Compare June 10, 2020 17:58
@kxl-adsk kxl-adsk merged commit 238f46e into dev Jun 11, 2020
@kxl-adsk kxl-adsk deleted the krickw/MAYA-104936/dont_draw_selected_instances_multiple_times branch June 11, 2020 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vp2renderdelegate Related to VP2RenderDelegate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants